// SHpCollection_BPA.cpp: implementation of the CSHpCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Swi/SHpCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSHpCollection_BPA::CSHpCollection_BPA()
{

}

CSHpCollection_BPA::~CSHpCollection_BPA()
{

}

CSHp_BPA* CSHpCollection_BPA::GetFirstSHp()
{
	return (CSHp_BPA*)CCardCollection_BPA::GetFirstCard();
}

CSHp_BPA* CSHpCollection_BPA::Traverse(CSHp_BPA *pSHp, int nDirection)
{
	return (CSHp_BPA*)CCardCollection_BPA::Traverse(pSHp,nDirection);
}

CSHp_BPA* CSHpCollection_BPA::GetSHp(char *strBusName, double dkV, char nID)
{
	CSHp_BPA tempSHp;
	strcpy(tempSHp.m_strName,strBusName);
	tempSHp.m_dkV = dkV;
	tempSHp.m_chID = nID;
	return (CSHp_BPA*)CCardCollection_BPA::GetCard(&tempSHp);
}